home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Source Code / C / Snippets / DirectoryPopup 1.0 / DirectoryPopup Source / DirectoryPopup.h < prev   
Encoding:
C/C++ Source or Header  |  1996-06-02  |  858 b   |  47 lines  |  [TEXT/CWIE]

  1. /*
  2.  *    Project:        <none>
  3.  *
  4.  *    Filename:         DirectoryPopup.h
  5.  *
  6.  *    Author:         Marco Piovanelli
  7.  *
  8.  *    Revision History:
  9.  *
  10.  *            1996.06.02                MP        created this file
  11.  *
  12.  */
  13.  
  14. #ifndef __FILES__
  15. #include <Files.h>
  16. #endif
  17.  
  18. #ifndef __MENUS__
  19. #include <Menus.h>
  20. #endif
  21.  
  22. #ifndef __WINDOWS__
  23. #include <Windows.h>
  24. #endif
  25.  
  26. //    volume kinds
  27.  
  28. enum
  29. {
  30.     kVolumeKindCDROM        =    'Appl' ,        //    CD-ROM
  31.     kVolumeKindDiskImage    =    'Mung' ,        //    disk image
  32.     kVolumeKindFloppy        =    'Sony' ,        //    floppy
  33.     kVolumeKindFileServer    =    'AFPT' ,        //    AppleShare file server
  34.     kVolumeKindRAMDisk        =    'EDis'            //    RAM disk
  35. } ;
  36.  
  37. //    other constants
  38.  
  39. enum
  40. {
  41.     kDirectoryPopupMenuID = 93        //    directory pop-up menu ID
  42. } ;
  43.  
  44. OSType GetVolumeKind ( SInt16 inVolumeRefNum ) ;
  45. MenuRef BuildDirectoryPopup ( const FSSpec * inFileSpec ) ;
  46. Boolean TrackDirectoryPopup ( FSSpec * ioFileSpec, WindowRef inWindow, Point inHitPt ) ;
  47.